CC=gcc

BIN=nid-bf xml-doubles-check xml-gensource xml-merge xml-test

all: $(BIN)

nid-bf: nid-bf.c
	$(CC) $^ -o $@ -lbeecrypt

xml-doubles-check: xml-doubles-check.c
	$(CC) $^ -o $@ -lbeecrypt `pkg-config --libs --cflags libxml-2.0`

xml-gensource: xml-gensource.c
	$(CC) $^ -o $@ `pkg-config --libs --cflags libxml-2.0`

xml-merge: xml-merge.c
	$(CC) $^ -o $@ `pkg-config --libs --cflags libxml-2.0`

xml-test: xml-test.c
	$(CC) $^ -o $@ -lbeecrypt `pkg-config --libs --cflags libxml-2.0`

clean:
	rm $(BIN)

